<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="../common/common.jsp"%>   
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>追加评论</title>
        <link rel="stylesheet" href="${ctx }/css/layui.css">
		<script type="text/javascript" src="${ctx }/js/layer-v1.9.2/layer/layer.js"></script>
        <script type="text/javascript" src="${ctx}/js/layer-v1.9.2/layer/layui.js"></script>
		<script type="text/javascript" src="${ctx }/js/order/add_comment.js"></script>
	</head>
	<body>
	<div class="add_comment c_omment container">
			<div class="top">
				<span class="red f18">评价宝贝</span>
				<span class="r">卖家：<a href="javascript:;">${shopName}</a></span>
			</div>
			<input type="hidden" name="orderId" value="${orderId}"/>
			 <c:forEach var="product" items="${products}">
				<div class="inner clearfix" id="${product.productId }">
				       <input type="hidden" name="specInfo" value="${product.goods_sku_info}"/>
			           <input type="hidden" name="goodsId" value="${product.productId}"/>
			            <input type="hidden" name="commentId" value=""/>
					<div class="left l">
						<a href="${ctx }/goods/queryGoodsDetail?id=${product.productId }">
							<img src="${product.picture }" alt="${product.productName }" />
							<p>${product.productName }</p>
							<p>(<c:if test='${not empty product.goods_sku_info }'>${product.goods_sku_info }</c:if><c:if test='${empty product.goods_sku_info }'>无规格信息</c:if>)</p>
							<p>￥${product.marketPrice }</p>
						</a>
					</div>
					<div class="right l">
					    <c:forEach var="comment" items="${product.commentList}">
						        <p class="f16"><!-- <span class="content" > -->${comment.consultContent }<!-- </span> --><span class="nine time">[<fmt:formatDate value="${comment.createTime }" type="date" pattern="yyyy-MM-dd HH:mm:ss"/>]</span></p>
							
								<p class="show_pic_old">
								   <c:if test="${comment.filePicture !='' and comment.filePicture != null }">
									     <span>
											  <img style="width: 100px;height: 100px; margin-left: 3px; " src="${comment.filePicture}" alt="" />
											  <%-- <span><img src="${ctx }/images/add_del.png" alt="" /></span> --%>
									      </span>
								    </c:if>
									 <c:if test="${comment.filePicture2 !='' and comment.filePicture2 != null }">
									     <span>
											  <img style="width: 100px;height: 100px; margin-left: 3px; " src="${comment.filePicture2}" alt="" />
											 <%--  <span><img src="${ctx }/images/add_del.png" alt="" /></span> --%>
									      </span>
								    </c:if>
								     <c:if test="${comment.filePicture3 !='' and comment.filePicture3 != null }">
									     <span>
											  <img style="width: 100px;height: 100px; margin-left: 3px; " src="${comment.filePicture3}" alt="" />
											  <%-- <span><img src="${ctx }/images/add_del.png" alt="" /></span> --%>
									      </span>
								    </c:if>
								</p>
					    </c:forEach>
						
						<div class="nine"> 
							<p>追加评论：</p>
							<textarea name="consultContent" rows="15" cols="100" placeholder="宝贝用的好吗？来说说你的使用心得吧！"></textarea>
							<div class="sun_photo">
								     <input type="file" name="files" id="filePath${product.productId }" multiple="multiple" accept="image/jpg,image/jpeg,image/png" />
								<p class="l"><img src="${ctx}/images/pic.png" alt="" />晒照片</p>
								<%-- <span class="r">
									<input type="radio" name="${product.productId }" value="oppen"/>公开
									<input type="radio" name="${product.productId }" value="pri" checked/>匿名
								</span> --%>
							</div>
							 <p class="show_pic">
							 </p>
						</div>
					</div>
				</div>						
			</c:forEach>
			<button>提交评论</button>
		</div>
		<!--猜你喜欢     标签开始-->
		<%@include file="like_goods.jsp"%>
		<!--猜你喜欢     标签结束-->
		
		<!--底部-->
		<%@include file="../common/bottom.jsp"%>
		<script type="text/javascript" src="${ctx }/js/ajaxfileupload.js"></script>
	</body>
</html>
